import request from "@/utils/request";

const BASE_URL = "/supervisor-api/district";

class DistrictAPI {
  static provinceList() {
    return request<any, any>({
      url: `${BASE_URL}/provinceList`,
      method: "get",
    });
  }

  static cityList(provinceId: number) {
    return request<any, any>({
      url: `${BASE_URL}/cityList?provinceId=${provinceId}`,
      method: "get",
    });
  }
}

export default DistrictAPI;
